"""
@Author  : 康帅
@Time    : 2021/3/13 14:09
@Function: 函数的特殊功能
"""


def func(num):
    def first_inner_func():
        return "这是第一个内部函数"

    def second_inner_func():
        return "这是第二个内部函数"

    if num == 1:
        return first_inner_func()
    else:
        return second_inner_func()


if __name__ == '__main__':
    print(func(1))
    print(func(2))
